package com.cf.rosemont.modele;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.util.LinkedList;
/*
 * @author Carlos
 */
public class SerpentClient extends Serpent {
      private LinkedList<Case> list;
      private Direction direction;
      private boolean estMort;
      private Direction demande;
      private int eatCount;
      private int moveCounter;    
      private Thread th;
      public SerpentClient() {
            this.list = new LinkedList<Case>();
            this.list.add(new Case(14, 10));
            this.list.add(new Case(15, 10));
            this.list.add(new Case(16, 10));
            this.direction = Direction.VERS_LA_DROITE;
            this.th = new ThreadSerpentClient(null);//Debemos pasar un socket (desde servesocket.accept()...)
            this.setCouleur(Color.red);
      }
      public void demarrer(){
          th.start();
      }
}
